import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/choujiang'
  },
  {
    path: '/pingce',
    name: 'Pingce',
    component: () => import( '../pages/pingce/index.vue')
  },
  {
    path: '/phone',
    name: 'phone',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import( '../pages/phone/index.vue')
  },
  {
    path: '/choujiang',
    name: 'choujiang',
    component: () => import( '../pages/choujiang/index.vue')
  },
  {
    path: '/zhuanpan',
    name: 'zhuanpan',
    component: () => import( '../pages/zhuanpan/index.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
